package com.nancal.activiti.service.impl;

import com.nancal.activiti.dao.GroupDao;
import com.nancal.activiti.entity.pojo.ProcessGroup;
import com.nancal.activiti.service.GroupService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Slf4j
@Service
@Transactional
public class GroupServiceImpl implements GroupService {
    @Autowired
    private GroupDao groupDao;
    @Override
    public void updateGroup(String id) {
        groupDao.updateGroup(id);
    }

    @Override
    public List<ProcessGroup> queryAllGroup() {
        return groupDao.queryAllGroup();
    }
}
